package com.jic.member.service;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.member.entity.TripEntity;
import com.jic.member.request.TripEntityIdRequest;
import com.jic.member.request.TripEntityQueryRequest;
import com.jic.member.request.TripEntityRequest;
import com.jic.member.response.TripEntityResponse;
import com.jic.member.response.TripInfoResponse;

import java.util.List;

/**
 * @author yinhaijun
 * @date: 2020/6/8
 */
public interface TripService {

    void saveTest(Long id);

    void start(TripEntity tripEntity);

    void end(TripEntity tripEntity);

    RestResult<Long> updateTrip(TripEntityRequest tripEntity);

    RestResult<Boolean> confirmSaveOrDraft(TripEntityIdRequest tripEntityIdRequest);

    List<TripEntity> findAll(TripEntity tripEntity);

    PageResult<TripEntityResponse> queryPage(TripEntityQueryRequest tripEntityQueryRequest);

    RestResult<TripInfoResponse> getTripDetailAndNodeList(TripEntityIdRequest tripEntityIdRequest);

    long delete(Long id);

    long updateStatus(TripEntity tripEntity);
}
